﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:visualizer="clr-namespace:DeepEarth.Toolkit.Controls"
    xmlns:commonControls="clr-namespace:DeepEarth.Toolkit.Common.Controls;assembly=DeepEarth.Toolkit.Common"
    >

    <Style TargetType="visualizer:ObjectVisualizer">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="visualizer:ObjectVisualizer">
                    <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                        <commonControls:TemplatedListBox x:Name="PART_TemplatedListBox" TemplateSelector="{Binding TemplateSelector, RelativeSource={RelativeSource TemplatedParent}}" ItemsSource="{Binding ItemsSource, RelativeSource={RelativeSource TemplatedParent}}" ItemTemplate="{Binding ItemTemplate, RelativeSource={RelativeSource TemplatedParent}}">
                        </commonControls:TemplatedListBox>
                    </ScrollViewer>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
